<?php
try{
//$last_line = shell_exec('lp_solve solve.txt -wlp solver.txt');
$resultado = exec('lp_solve solve.txt -plp -wfmps solver.txt');
}catch(Exception $e){
  var_dump($e);
}
echo '<pre>';
var_dump($resultado);
?>